<template>
  <div class="app">
    <router-view></router-view>
    <BottomNav v-show="$route.meta.showFooter"/>
  </div>
</template>

<script>
import BottomNav from './components/BottomNav/BottomNav.vue'

export default ({
  components: {BottomNav},
  mounted () {
    this.$store.dispatch('reqAddress')
    this.$store.dispatch('reqUserInfo')
  }
})
</script>

<style lang="stylus" rel="stylesheet/stylus">
  .app
    width 100%
    height 100%
    background #f5f5f5
</style>
